diff options
| author | Adam Soltys <[email protected]> | 2022-11-08 14:28:22 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-08 14:28:22 -0800 |
| commit | 4b15454e4b37e212a646d5b85fea7ae8eab374e2 (patch) | |
| tree | cc4b9b7bcb9c66c1e4451b658350971a00319181 /src/routes/(app)/invoice/[id]/+layout.server.js | |
| parent | 28edb9a193263697fce8bba0fbad9165f762c534 (diff) | |
| download | coinos-ui-4b15454e4b37e212a646d5b85fea7ae8eab374e2.tar.gz coinos-ui-4b15454e4b37e212a646d5b85fea7ae8eab374e2.zip | |
more qr tweaking
Diffstat (limited to 'src/routes/(app)/invoice/[id]/+layout.server.js')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+layout.server.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/routes/(app)/invoice/[id]/+layout.server.js b/src/routes/(app)/invoice/[id]/+layout.server.js index 9df99035..4b6cf97e 100644 --- a/src/routes/(app)/invoice/[id]/+layout.server.js +++ b/src/routes/(app)/invoice/[id]/+layout.server.js @@ -4,7 +4,8 @@ import { get } from '$lib/utils'; export async function load({ params }) { let { id } = params; let invoice = await get(`/invoice?uuid=${id}`); - let src = Qr.drawImg(invoice.text, { size: 600 }); + let sm = Qr.drawImg(invoice.text, { size: 300 }); + let lg = Qr.drawImg(invoice.text, { size: 1200 }); - return { id, invoice, src }; + return { id, invoice, sm, lg }; } |
